/*
 * @Author: June
 * @Date: 2022-07-28 16:32:50
 * @LastEditors: June
 * @LastEditTime: 2022-12-01 09:16:07
 * @Description:
 *
 */
import request from '@/utils/request'

/**
 * @description: 获取人员
 * @return {*}
 */
const getUserListApi = () => { return request({ method: 'post', url: '/comp/userInfo/all' }) }

/**
 * @description: 获取部门
 * @return {*}
 */
const getDeptListApi = () => { return request({ method: 'get', url: '/dept/allFilterCode' }) }
/**
 * @description: 获取所有部门
 * @return {*}
 */
const getDeptListAllApi = () => { return request({ method: 'get', url: '/dept/list' }) }

/**
 * @description: 获取设备
 * @return {*}
 */
const getEqListApi = () => { return request({ method: 'get', url: '/equip/info/all' }) }

/**
 * @description: 查询物料
 * @return {*}
 */
const getMaterialListApi = () => { return request({ method: 'post', url: '/material/info/all' }) }

/**
 * @description: 查询物料分类
 * @return {*}
 */
const getMaterialClassifyAllApi = () => { return request({ method: 'get', url: '/material/classify/list' }) }

/**
 * @description: 所有供应商
 * @return {*}
 */
const getSupplierListApi = () => { return request({ method: 'get', url: '/basic/supplier/all' }) }

/**
 * @description: 所有客户
 * @return {*}
 */
const getCustomerListApi = () => { return request({ method: 'get', url: '/basic/customer/all' }) }

/**
 * @description: 所有检验项
 * @return {*}
 */
const getInspectionAll = () => { return request({ method: 'get', url: '/inspectStandard/getAll' }) }

/**
 * @description: 所有工序
 * @return {*}
 */
const getProcedureAll = () => { return request({ method: 'post', url: '/procedure/getAll' }) }
/**
 * @description: 所有故障分类
 * @return {*}
 */
const getFaultClassifyListApi = () => { return request({ method: 'get', url: '/equip/repair/faultClassify/getList' }) }

export { getUserListApi, getDeptListApi, getEqListApi, getMaterialListApi, getSupplierListApi, getCustomerListApi, getInspectionAll, getProcedureAll,getFaultClassifyListApi,getDeptListAllApi,getMaterialClassifyAllApi }
